package com.sx.pay.service;

import com.alibaba.fastjson.JSONObject;
import com.sx.pay.model.PayModel;
import com.sx.pay.model.RefundModel;

import java.util.Map;

/**
 * @author AdinZ
 * @date 2020/8/28 16:08
 */
public interface IPayService {
    /**
     * 创建支付订单
     * @param model
     * @return
     */
    Map createPayOrder(PayModel model);

    /**
     * 回调签名验证
     * @param params
     * @return
     */
    boolean verify(JSONObject params);

    String getAppId();

    /**
     * 支付订单退款
     */
    void refund(RefundModel model);

}
